<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="UTF-8">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Hidoudou SCM</title>
    <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
    <%= javascript_include_tag 'jquery', 'jquery.ui', 'application', 'nav' -%>
    <%= stylesheet_link_tag 'ui-lightness/jquery-ui-1.7.2.custom', 'layout' %>
  </head>

  <body id="index">
    <div id="scene">
      <div id="page">
        <div class="clearfix" id="header">
          <div id="login"><%= current_admin -%>， <%= link_to '注销',logout_path,:method => :delete %>&nbsp;|&nbsp;<%= link_to "修改密码",'#' -%></div>
          <div id="logo"><a href="/">Hidoudou management</a></div>
          <%= render :partial => 'shared/nav_bar' -%>
			  </div>
        <div class="clearfix" id="content">
          <%= yield %>
        </div>
      </div>
      <% if flash[:notice] || flash[:error] -%>
      <div id="msg" class="<%= flash[:notice].nil? ? 'err' : 'ok' %>">
        <div>
	        <a class="btt fr" href="#" id="close_flash_msg">关闭</a>
	        <%= flash[:notice] -%>
	        <%= flash[:error] -%>
        </div>
      </div>
      <% end -%>
      <div id="loading" style="display:none;position:fixed; top:200px;background: #ccc;align:center; width:100%">
        <p align="center">loading....</p>
      </div>
    </div>
    <%= yield :window_box -%>
  </body>
</html>
